<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of VentaDetalle
 *
 * @author Jose Tejada
 */
class VentaDetalleBean extends EntityBean {

    private $m_iIdVentaDetalle;
    private $m_ventaBean;
    private $m_productoBean;
    private $m_dPrecioVenta;
    private $m_iCantidad;
    private $m_iActivo;
    private $m_aoTodos;

    function __construct( $iIdVentaDetalle = 0, VentaBean $ventaBean = NULL, ProductoBean $productoBean = NULL, $dPrecioVenta = 0.0, $iCantidad = 0, $iActivo = 0 ) {
        $this->m_iIdVentaDetalle = $iIdVentaDetalle;
        $this->m_ventaBean = $ventaBean;
        $this->m_productoBean = $productoBean;
        $this->m_dPrecioVenta = $dPrecioVenta;
        $this->m_iCantidad = $iCantidad;
        $this->m_iActivo = $iActivo;
    }

    public function getIdVentaDetalle() {
        return $this->m_iIdVentaDetalle;
    }

    public function setIdVentaDetalle( $iIdVentaDetalle ) {
        $this->m_iIdVentaDetalle = $iIdVentaDetalle;
        return $this;
    }

    public function getVentaBean() {
        return $this->m_ventaBean;
    }

    public function setVentaBean( VentaBean $ventaBean ) {
        $this->m_ventaBean = $ventaBean;
        return $this;
    }

    public function getProductoBean() {
        return $this->m_productoBean;
    }

    public function setProductoBean( $productoBean ) {
        $this->m_productoBean = $productoBean;
        return $this;
    }

    public function getPrecioVenta() {
        return $this->m_dPrecioVenta;
    }

    public function setPrecioVenta( $dPrecioVenta ) {
        $this->m_dPrecioVenta = $dPrecioVenta;
        return $this;
    }

    public function getCantidad() {
        return $this->m_iCantidad;
    }

    public function setCantidad( $iCantidad ) {
        $this->m_iCantidad = $iCantidad;
        return $this;
    }

    public function getActivo() {
        return $this->m_iActivo;
    }

    public function setActivo( $iActivo ) {
        $this->m_iActivo = $iActivo;
        return $this;
    }

    public function getTodosValores() {
        $this->m_aoTodos = Array(
            $this->m_iIdVentaDetalle,
            $this->m_ventaBean->getIdVenta(),
            $this->m_productoBean->getIdProducto(),
            $this->m_dPrecioVenta,
            $this->m_iCantidad,
            $this->m_iActivo
        );
        return $this->m_aoTodos;
    }

}

?>
